package org.rcgwt.client.ui.validator;

import com.google.gwt.user.client.ui.Widget;

/**
 * A Converter interface which provides a convert (in both ways) method.
 * 
 * @author Elian ORIOU
 * 
 */

public interface IConverter<T> extends IValidatorElement {

	T getAsObject(IClientValidatorContext context, Widget component,
			String value);

	String getAsString(IClientValidatorContext context, Widget component,
			T value);
}
